<template>
	<view>
		<myhead left="1"></myhead>
		<view class="tit">安全中心</view>
		<navigator url="setSecurity?lx=1" hover-class="navigator-hover" class="list">
			<view>昵称</view>
			<view>
				<view>{{userInfo.nickName}}</view>
				<view>❯</view>
			</view>
		</navigator>
		<navigator url="setSecurity?lx=2" hover-class="navigator-hover" class="list">
			<view>登录密码</view>
			<view>
				<view>修改</view>
				<view>❯</view>
			</view>
		</navigator>
		<navigator url="setSecurity?lx=3" hover-class="navigator-hover" class="list">
			<view>资金密码</view>
			<view>
				<view>修改</view>
				<view>❯</view>
			</view>
		</navigator>
		<navigator url="bankCard" hover-class="navigator-hover" class="list">
			<view>银行卡</view>
			<view>
				<view></view>
				<view>❯</view>
			</view>
		</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo:null
			}
		},
		onShow() {
			if(uni.getStorageSync('userInfo')){
				this.userInfo=uni.getStorageSync('userInfo')
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	.tit{
		padding: 8vw;
		font-size: 7vw;
		color: #4CD964;
	}
	.list{
		width: 84%;
		padding: 4vw 0;
		margin: 0 auto;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		color: #333333;
		font-size: 3.8vw;
		border-bottom: 1px solid #F2F2F2;
	}
	.list>view:nth-child(2){
		display: flex;
		flex-direction: row;
		color: #999999;
	}
	.list>view:nth-child(2)>view:nth-child(1){
		margin-right: 4vw;
	}
</style>
